//
//  TSFindRecommendCellViewModel.m
//  TaShuo
//
//  Created by N-X on 2018/3/19.
//  Copyright © 2018年 MRNAN. All rights reserved.
//

#import "TSFindRecommendCellViewModel.h"
#import "TSFindRecommendModel.h"
#import "TSFindRecommendCell.h"
@implementation TSFindRecommendCellViewModel
- (void)bindView:(UIView *)view
{
    TSFindRecommendCell * cell = (TSFindRecommendCell *)view;
    cell.headPicUrl = [_model.headpic componentsSeparatedByString:@"?"][0];
    cell.iconUrl = [_model.icon componentsSeparatedByString:@"?"][0];
    cell.storeEnName = _model.store_english_name;
    cell.storeName = _model.store_name;
    cell.itempicUrls = [[_model.pics.rac_sequence map:^id _Nullable(TSFindRecommendPicItemModel * _Nullable value) {
        NSString * picUrl = [value.url componentsSeparatedByString:@"?"][0];
        return picUrl;
    }] array];
}
@end
